package com.leanyuan.publi.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leanyuan.publi.domain.Userinfo;
import com.leanyuan.publi.dao.UserinfoMapper;
import com.leanyuan.publi.dto.UserInfoDto;
import com.leanyuan.publi.service.UserinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Service
public class UserinfoServiceImpl extends ServiceImpl<UserinfoMapper, Userinfo> implements UserinfoService {

    @Autowired
    UserinfoMapper userinfoMapper;

    @Override
    public Page<Userinfo> findAll(UserInfoDto userInfoDto,Page<Userinfo> page) {
        page.setRecords(userinfoMapper.findAll(userInfoDto,page));
        return page;
    }
}
